﻿using System.Collections.Generic;
using NOSDC.Pocos;
using System;

namespace NOSDC.Models
{
    public class CommentViewModel
    {
        public IList<Comment> Comments { get; set; }
        public int ArticleID { get; set; }
        public Comment PostedComment { get; set; }
        public int TotalComments { get; set; }
        public int CurrentPage { get; set; }
        public Guid AuthToken { get; private set; } 

        public CommentViewModel()
            : this(0) { }

        public CommentViewModel(int articleId)
        {
            ArticleID = articleId;
            PostedComment = new Comment();
            Comments = new List<Comment>();
            CurrentPage = 1;
            AuthToken = Guid.NewGuid();
        }
    }

    public class CommentView
    {
        public IEnumerable<Comment> Comments { get; set; }
    }
}